<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table class="table" width="100%" layoutH="8">
	<thead>
		<tr>
			<th align="center">序号</th>
			<th align="center">数据值</th>
			<th align="center">数据显示名称</th>
			<th align="center">数据描述 </th>
			<th align="center">编辑</th>
			<th align="center">删除</th>
		</tr>
	</thead>
	<tbody>
		<logic:present name="datagrid">
			<logic:iterate name="datagrid" id="entity" indexId="idx">
				<tr target="dictid" rel="${entity.id}" id="dict-${entity.id}" ${idx % 2 == 1 ? 'style="background-color: #F5F5F5"' : ''}>
					<td style="text-align:center" width="50px">${idx + 1}</td>
					<td style="text-align:left">${entity.dictValue}</td>
					<td style="text-align:left">${entity.dictKey}</td>
					<td style="text-align:left">${entity.dictDesc}</td>
					<td>
						<a href="app/system/dict.do?action=dialogDictPage&id=${entity.id}" class="oplink" target="dialog" title="数据字典项编辑" width="540" height="240" rel="sys_dictedit-${entity.id}">编辑</a>
					</td>
					<td>
						<a href="app/system/dict.do?action=actionRemoveDict&id=${entity.id}" class="oplink" target="ajaxTodo" width="550" height="250" title="确定要删除该数据项吗?" rel="sys_menudictdel-${entity.id}" callback="callback_dictRemove(${entity.id})">删除</a>
					</td>
				</tr>
			</logic:iterate>
		</logic:present>
	</tbody>
</table>